package com.Test.SportsPerson;

public class Test {
    public static void main(String[] args) {

        Person basketballCoach = new BasketballCoach("陈斌",40);
        Person basketballPlayer = new BasketballPlayer("范花",20);
        Person pIngPongCoach = new PIngPongCoach("张海",60);
        Person pingPongPlayer = new PingPongPlayer("王军",25);


        basketballCoach.play(basketballPlayer);

        basketballPlayer.play(basketballCoach);

        pIngPongCoach.play(pingPongPlayer);

        pingPongPlayer.play(pingPongPlayer);
        
        ((PingPongPlayer) pingPongPlayer).sayEnglish(pingPongPlayer);

        ((PIngPongCoach) pIngPongCoach).sayEnglish(pingPongPlayer);

    }
}
